package com.pipayshop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pipayshop.domain.ShopOrderInfo;
import com.pipayshop.domain.dto.GetOrderByNameDto;
import com.pipayshop.domain.dto.GetOrderDataDto;
import com.pipayshop.domain.vo.ShopOrderDetailVO;
import com.pipayshop.domain.vo.ShopOrderInfoVO;
import com.pipayshop.entity.vo.PageDataVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author xiaoqiu
 * @date 2024/10/8 11:32
 * @description
 */
public interface OnlineStoreShopOrderInfoService extends IService<ShopOrderInfo> {
    List<ShopOrderInfoVO> getOrderList(GetOrderDataDto getOrderDataDto);
    List<ShopOrderInfoVO> getOrderListByItemName(GetOrderByNameDto getOrderByNameDto);

    List<String> generateUnpaidOrder(String token);

    int delOrderByOrderId(String orderId);

    int changePrice(String token);

    boolean payOrder(String token);

    boolean payOrderCertificate(MultipartFile file, String token);

    Integer updateOrder(String orderId, Integer status);

    ShopOrderDetailVO getOrderDetail(String orderId);

    void deleteFailOrders();

    void failOrder(String orderId);

    int completedOrder(String orderId);

//    PageDataVO getOrderListByShopId(GetOrderDataDto getOrderDataDto);
}
